package edu.gdkm.iodemo;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

public class OutputDemo {
    public static void main(String[] args) throws IOException {
        OutputStream out = System.out;
        out.write('科');
        out.write('\n');
        out.flush();  // 刷新缓冲区，将数据写出
        BufferedWriter bw= new BufferedWriter(new OutputStreamWriter(out));
        bw.write('科');
        bw.flush();
    }
}
